import socket
import sys
import string

data = '\x01'
data += chr(string.atoi(sys.argv[1]))
print string.atoi(sys.argv[1])
data += sys.argv[2]
#for i in range(0,len(sys.argv)):
#	print i, sys.argv[i]

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(data ,('localhost', 8000))
print 'server: send OK!'
sock.close()
